草庐IT

firebase - flutter NoSuchMethodError

全部标签

firebase - flutter firebase 用户在应用程序启动时登录

在初始屏幕中,我想检查是否有经过身份验证的用户导航到主页如果不去注册/登录页面这是我的启动画面代码,该方法启动并检查是否有用户登录,如果有用户登录则导航到主页class_SplashScreenStateextendsState{finalFirebaseAuth_auth=FirebaseAuth.instance;FirebaseUser_user;Future_getUser()async{_user=await_auth.currentUser();return_user;}FuturestartTime()async{var_duration=newDuration(seco

firebase - flutter firebase 用户在应用程序启动时登录

在初始屏幕中,我想检查是否有经过身份验证的用户导航到主页如果不去注册/登录页面这是我的启动画面代码,该方法启动并检查是否有用户登录,如果有用户登录则导航到主页class_SplashScreenStateextendsState{finalFirebaseAuth_auth=FirebaseAuth.instance;FirebaseUser_user;Future_getUser()async{_user=await_auth.currentUser();return_user;}FuturestartTime()async{var_duration=newDuration(seco

Firebase 存储图像无法正确上传

我正在尝试将我从手机拍摄的图像发送到Firebase存储。第一个函数使用图像选择器插件获取图像,并将路径返回作为上传函数的参数传递。图像上传到云存储,但在面板中类型为application/octet-stream并且图像不显示Stringdownload_path;varimageFile;picker()async{FiletheImage=awaitImagePicker.pickImage(source:ImageSource.gallery);imageFile=theImage;vartheimagepath=theImage.path;setState((){imageF

Firebase 存储图像无法正确上传

我正在尝试将我从手机拍摄的图像发送到Firebase存储。第一个函数使用图像选择器插件获取图像,并将路径返回作为上传函数的参数传递。图像上传到云存储,但在面板中类型为application/octet-stream并且图像不显示Stringdownload_path;varimageFile;picker()async{FiletheImage=awaitImagePicker.pickImage(source:ImageSource.gallery);imageFile=theImage;vartheimagepath=theImage.path;setState((){imageF

firebase - 在 Flutter App 中查找邮箱和用户名是否已经存在于 Firebase Auth 中

我在我的Flutter应用程序中使用电子邮件注册,并为此使用Firebase身份验证。如何在注册页面上显示输入的电子邮件和用户名是否已存在于数据库中? 最佳答案 firebase会将该信息作为错误消息返回:FirebaseAuth.instance.createUserWithEmailAndPassword(email:_email,password:_password).then((user){//dowhateveryouwanttodowithnewuserobject}).catchError((e){print(e.de

firebase - 在 Flutter App 中查找邮箱和用户名是否已经存在于 Firebase Auth 中

我在我的Flutter应用程序中使用电子邮件注册,并为此使用Firebase身份验证。如何在注册页面上显示输入的电子邮件和用户名是否已存在于数据库中? 最佳答案 firebase会将该信息作为错误消息返回:FirebaseAuth.instance.createUserWithEmailAndPassword(email:_email,password:_password).then((user){//dowhateveryouwanttodowithnewuserobject}).catchError((e){print(e.de

authentication - 即使有测试号码,Flutter firebase auth 电话认证也会失败

我正在使用firebase_auth包在我的flutter应用中启用电话身份验证。我按照firebase-flutter教程设置了firebase项目和一个支持android的应用程序。然后我按照firebase_auth示例代码创建了我的登录页面,但是我收到了示例中提供的示例编号/代码的以下错误PlatformException(error,CannotcreatePhoneAuthCredentialwithouteitherverificationProof,sessionInfo,ortempraryproof.,null)当我尝试verifyPhoneNumber时,下面的文

authentication - 即使有测试号码,Flutter firebase auth 电话认证也会失败

我正在使用firebase_auth包在我的flutter应用中启用电话身份验证。我按照firebase-flutter教程设置了firebase项目和一个支持android的应用程序。然后我按照firebase_auth示例代码创建了我的登录页面,但是我收到了示例中提供的示例编号/代码的以下错误PlatformException(error,CannotcreatePhoneAuthCredentialwithouteitherverificationProof,sessionInfo,ortempraryproof.,null)当我尝试verifyPhoneNumber时,下面的文

firebase - flutter :CircularProgressIndicator()

我正在尝试将FloatingActionButton.extended更改为按下后的CircularProgressIndicator,等待ensureLoggedIn()函数执行完成然后转到下一个屏幕。我的代码:newFloatingActionButton.extended(elevation:20.0,backgroundColor:Colors.white,onPressed:()async{awaitensureLoggedIn();Navigator.push(context,MaterialPageRoute(builder:(_)=>HomeScreen()));},i

firebase - flutter :CircularProgressIndicator()

我正在尝试将FloatingActionButton.extended更改为按下后的CircularProgressIndicator,等待ensureLoggedIn()函数执行完成然后转到下一个屏幕。我的代码:newFloatingActionButton.extended(elevation:20.0,backgroundColor:Colors.white,onPressed:()async{awaitensureLoggedIn();Navigator.push(context,MaterialPageRoute(builder:(_)=>HomeScreen()));},i